import 'package:flutter/material.dart';

main() => runApp(const CenterWidget());

class CenterWidget extends StatelessWidget {
  const CenterWidget({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        title: 'Test',
        home: Scaffold(
            appBar: AppBar(title: const Text('Flutter 容器Widget -- Center')),
            body: const Center(
              child: Text(
                'Hello Flutter',
                style: TextStyle(color: Colors.red, fontSize: 50),
              ),
            )));
  }
}
